
#include <UnitsVisitor.h>

using namespace std;

UnitsVisitor::UnitsVisitor( ostream& os, float amountInBaseUnit ):os_m(os), remainingAmount_m(amountInBaseUnit)
{	
}

void UnitsVisitor::visit(const Unit* pUnit) 
{
	pUnit->formatThisUnit( os_m, remainingAmount_m );
}

